#include<iostream>
int main()
{
	int n,i,max;
	float a[20];
	std::cout<<"n=";
	std::cin>>n;
	for(i=0;i<n;i++)
		{
			std::cout<<"a["<<i<<"]=";
			std::cin>>a[i];
		}
	std::cout<<"(";
	for(i=0;i<n;i++)
		std::cout<<a[i]<<",";
	std::cout<<") ==> ";
	max=a[0];
	for(i=1;i<n;i++)
		if(a[i]>max)
			max=a[i];
	std::cout<<"maxim ="<<max<<" si pozitiile ";
	for(i=0;i<n;i++)
		if(max==a[i])
			std::cout<<i<<",";
	std::cout<<"\n";
	return 0;
}
